(function($ns){
	$ns.order = function (arr,pro,desc){
		var i = 0, temp;
		while(i < arr.length - 1){
			if(arr[i][pro] < arr[i+1][pro] && desc){
				temp = arr[i];
				arr[i] = arr[i+1];
				arr[i+1] = temp;
				i > 0 ? i-- : i++;
			}
			else{
				i++;
			}
		}
		return arr;
	};
})(jslib.$_$('jslib.module.Data'));